package com.sky.service;

import com.sky.dto.AddressBookAddDTO;
import com.sky.dto.AddressBookSetDefaultDTO;
import com.sky.dto.AddressBookUpdateDTO;
import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    List<AddressBook> list();

    void add(AddressBookAddDTO dto);

    AddressBook getById(Long id);

    void update(AddressBookUpdateDTO dto);

    void setDefault(AddressBookSetDefaultDTO dto);

    void delete(Long id);
}
